/* JavaLog - pkg tracker 
* 
* Copyright (C) 2009 Allyson Lima, Diego Pedro, Victor Freire
* 
* This program is free software: you can redistribute it and/or modify it under
* the terms of the GNU General Public License as published by the Free Software 
* Foundation, either version 3 of the License, or (at your option) any later version.
* 
* This program is distributed in the hope that it will be useful, but WITHOUT ANY
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
* PARTICULAR PURPOSE. See the GNU General Public License for more details.
* 
* You should have received a copy of the GNU General Public License along with this 
* program. If not, see <http://www.gnu.org/licenses/>.
*/

package br.edu.ufcg.ccc.javalog;

/**
* A package.
* @author Allyson Lima, Diego Pedro, Victor Freire
* @version 12/10/09
*/
public class Package {
	
	private String ID;
	private Address senderAddress;
	private Address recipientAddress;
	private ShippingType type;
	private Franchise sourceFranchise;
	private Franchise destinationFranchise;
	private Franchise currentFranchise;
	//private List<ReportEntry> listOfReports;
	
	public Package(String ID, Address senderAddress, Address recipientAddress,
			ShippingType type) {
		this.ID = ID;
		this.senderAddress = senderAddress;
		this.recipientAddress = recipientAddress;
		this.type = type;
	}

	public String getID() {
		return ID;
	}

	public Address getSenderAddress() {
		return senderAddress;
	}

	public Address getRecipientAddress() {
		return recipientAddress;
	}

	public ShippingType getType() {
		return type;
	}

	public Franchise getSourceFranchise() {
		return sourceFranchise;
	}

	public Franchise getDestinationFranchise() {
		return destinationFranchise;
	}
	
	public Franchise FranchiseWithPackage() {
		return currentFranchise;
	}
	
	//STUBS
	
	//public List<ReportEntry> getTrackingReport() {return null;}
	public void movePackage() { };
	public boolean equals() { return true; }
	public int hashCode() { return 0; }
	
}
